﻿using B.S.Material.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations.Schema;

namespace B.S.Material.Wirth.Api.Applications.Command.FeedDetailsCommand
{
    public class UpdateFeedDetailsCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int FeedDetailsId { get; set; }
        /// <summary>
        ///生产补料主表  外键
        /// </summary>
        public int FeedingId { get; set; }

        [ForeignKey("FeedingId")]

        /// <summary>
        ///产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        ///产品编号
        /// </summary>
        public string ProductNumber { get; set; }
        /// <summary>
        ///规格型号
        /// </summary>
        public string SpecificationModel { get; set; }
        /// <summary>
        ///单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        ///补料数量
        /// </summary>
        [Column(TypeName = "decimal(18, 2)")]
        public decimal SupplementQuantity { get; set; }
        /// <summary>
        ///出库库管
        /// </summary>
        public string OutboundWarehouseManager { get; set; }
        /// <summary>
        ///现有库存
        /// </summary>
        [Column(TypeName = "decimal(18, 2)")]
        public decimal CurrentStock { get; set; }
        /// <summary>
        ///交货日期
        /// </summary>
        public DateTime DeliveryDate { get; set; }
        /// <summary>
        ///补料方式
        /// </summary>
        public string SupplementMethod { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        ///规格
        /// </summary>
        public string RelatedDocument { get; set; }
        /// <summary>
        /// 关联项目
        /// </summary>
        public string RelatedProjectt { get; set; }

        /// <summary>
        ///删除标识
        /// </summary>

        public bool IsDel { get; set; }
    }
}
